<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘商城</title>
    <!-- 字体图标 -->
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <!--mui的css文件  -->
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./css/search.css">
    <link rel="stylesheet" href="./css/searchList.css">
</head>

<body>
    <div class="lt-container">
        <!-- 1-整体布局， 头部、底部固定定位 
            2- 主体 触屏滑动效果 -->
        <!--头部 -->
        <div class="lt-header">
            <div class="home">
                <a href="javascript:history.back();">
                    <span class="mui-icon mui-icon-back"></span>
                </a>
            </div>
            <h3 class="title">商品列表</h3>
        </div>
        <!-- 主体 -->
        <div class="lt-main">
            <!-- 区块滚动 -->
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <!-- 搜索框 -->
                    <div class="lt-search">
                        <input type="search" name="" id="search" placeholder="请输入搜索关键字">
                        <button type="button" class="mui-btn mui-btn-primary" id="btn_search">搜索</button>
                    </div>
                    <!-- 排序模块 -->
                    <div class="lt-sort" style="margin-bottom: 10px">
                        <a href="#">
                            上架时间
                            <span class="fa fa-angle-down"></span>
                        </a>
                        <a href="#" class="pric">
                            价格
                            <span class="fa fa-angle-down"></span>
                        </a>
                        <a href="#" class="num">
                            库存
                            <span class="fa fa-angle-down"></span>
                        </a>
                        <a href="#">
                            折扣
                            <span class="fa fa-angle-down"></span>
                        </a>
                    </div>
                    <!-- 产品 -->
                    <ul class="lt-product mui-clearfix">
                        <!-- <li>
                            <a href="#">
                                <img src="./images/product.jpg" alt="">
                                <p class="mui-ellipsis-2">adidas阿迪达斯 男式 场下休闲篮球鞋S83700场下休闲篮球鞋S83700 adidas阿迪达斯 男式
                                    场下休闲篮球鞋S83700场下休闲篮球鞋S83700 </p>
                                <p>
                                    <span class="new">¥9.99</span>
                                    <span class="old">¥560</span>
                                </p>
                                <button type="button" class="mui-btn mui-btn-primary">立即购买</button>
                            </a>
                        </li> -->
                        
                    </ul>
                </div>
            </div>

        </div>
        <!--底部 -->
        <div class="lt-footer">
            <ul>
                <li>
                    <a href="index.html">
                        <span class="fa fa-home"></span>
                        <p>首页</p>
                    </a>
                </li>
                <li>
                    <a href="category.html">
                        <span class="fa fa-bars"></span>
                        <p>分类页</p>
                    </a>
                </li>
                <li>
                    <a href="cart.html">
                        <span class="fa fa-shopping-cart"></span>
                        <p>购物车</p>
                    </a>
                </li>
                <li>
                    <a href="user.html">
                        <span class="fa fa-user"></span>
                        <p>用户中心</p>
                    </a>
                </li>

            </ul>
        </div>
    </div>

    <!-- 产品列表模板 -->
    <script type="text/html" id="tmp-pro">
        {{if data.length == 0}}
            <p>没有对应的产品</p>
        {{else}}
             {{each data v i}}
                 <li>
                    <a href="product.html?proId={{v.id}}">
                        <img src="{{v.pic[0].picAddr}}" alt="">
                        <p class="mui-ellipsis-2">{{v.proName}}</p>
                        <p>
                            <span class="new">￥{{v.price}}</span>
                            <span class="old">￥{{v.oldPrice}}</span>
                        </p>
                        <button type="button" class="mui-btn mui-btn-primary">立即购买</button>
                    </a>
                </li>
            {{/each}}
        {{/if}}
    </script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/searchList.js"></script>
</body>

</html>